import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/comments/',
    method: 'get',
    params
  })
}

export function publishComment(data) {
  return request({
    url: '/comments/publish/',
    method: 'post',
    data
  })
}
